package com.thm.tfast.modules.sys.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文件上传记录表
 * </p>
 *
 * @author THM
 * @since 2022-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_file")
@ApiModel(value="SysFile对象", description="文件上传记录表")
public class SysFile implements Serializable {

    private static final long serialVersionUID = -704014020559753188L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "文件存储桶名称")
    private String bucketName;

    @ApiModelProperty(value = "随机文件名称")
    private String fileName;

    @ApiModelProperty(value = "文件真实名称")
    private String realName;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    @ApiModelProperty(value = "文件后缀")
    private String suffix;

    @ApiModelProperty(value = "文件后缀")
    private String path;

    @ApiModelProperty(value = "删除标识 0-删除 1-未删除")
    private Integer delFlag;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建用户")
    private Long createUser;


}
